package com.wiki.service;

import com.wiki.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wiki.utils.commonRequest.category.CategoryQueryReq;
import com.wiki.utils.commonRequest.category.CategorySaveReq;
import com.wiki.utils.commonResponse.CategoryQueryResp;
import com.wiki.utils.commonResponse.PageResp;

import java.util.List;

/**
 * <p>
 * 分类 服务类
 * </p>
 *
 * @author 偷闰土的猹
 * @since 2022-01-07
 */
public interface CategoryService extends IService<Category> {

    public PageResp<CategoryQueryResp> listAll(CategoryQueryReq req);

    //保存
    public void save(CategorySaveReq req);

    //删除
    public void delete(Long id);

    //    模糊查询
    public PageResp<CategoryQueryResp> queryLike(CategoryQueryReq req);

//    查询所有
    public List<CategoryQueryResp> all();

}
